package sk.hackcraft.util.simulation.statistics;

public class StatisticsItem
{
	private final double[] confidenceInterval;
	private final double average;
	private final long count;

	public StatisticsItem(double[] confidenceInterval, double average, long count)
	{
		this.confidenceInterval = confidenceInterval;
		this.average = average;
		this.count = count;
	}
	
	public StatisticsItem()
	{
		this(new double[]{0,0},0,0);
	}

	public double[] getConfidenceInterval()
	{
		return confidenceInterval;
	}

	public double getAverage()
	{
		return average;
	}

	public long getCount()
	{
		return count;
	}

	@Override
	public String toString() {
		return "StatisticsItem{" + "confidenceInterval=" + confidenceInterval[0] + ";" + confidenceInterval[1] + ", average=" + average + ", count=" + count + '}';
	}
}
